<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<html>
<head>
    <title>Add User</title>
</head>
<body>

<h2>Add User Information</h2>
<form:form method="POST" action="/SpringMVC/saveUser" modelAttribute="user">
   <table>
    <tr>
        <td><form:label path="firstName">First Name</form:label></td>
        <td><form:input path="firstName" /><font color="red"><form:errors path="firstName"/></font></td>
    </tr>
    <tr>
        <td><form:label path="lastName">Last Name</form:label></td>
        <td><form:input path="lastName" /></td>
    </tr>
    <tr>
        <td><form:label path="contact.address">Address</form:label></td>
        <td><form:input path="contact.address" /></td>
    </tr>
    <tr>
        <td><form:label path="contact.phone">Phone</form:label></td>
        <td><form:input path="contact.phone" /></td>
    </tr>
    <tr>
        <td><form:label path="id">id</form:label></td>
        <td><form:input path="id" /></td>
    </tr>
    <tr>
        <td colspan="2">
            <!-- <sec:authorize ifAllGranted="ROLE_ADMIN, ROLE_SUPERADMIN"> -->
			         <input type="submit" value="Submit"/>
			<!-- </sec:authorize> -->
        </td>
    </tr>
</table>  
</form:form>
</body>
</html>